/*
package com.pgtest.wsclient;

import com.alibaba.fastjson.JSONObject;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.springframework.util.ObjectUtils;

public class WSClient {

    private static final String USER_NAME = "TZC01";
    private static final String PASS_WORD = "TZC01";

    public static void main(String[] args) {
        //方式一:通过JaxWsDynamicClientFactory方式
        JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
        Client client = dcf.createClient("http://127.0.0.1:11001/loanproxy/ws/estimateWebService?wsdl");
        client.getOutInterceptors().add(new ClientLoginInterceptor(USER_NAME, PASS_WORD));
        Object[] objects = new Object[0];
        try {
            JSONObject jo = new JSONObject();
            jo.put("dealNo","1111"); //银行内部流水号
            jo.put("estimateDealNo","2410821");  //我公司询价流水号2411576
            jo.put("estimateNo","EST02");  //评估公司编号
            jo.put("coveredArea","1.12");  //建筑面积
            jo.put("unitPrice","2.22");  //评估单价
            jo.put("totalPrice","3.33");  //评估总值
            jo.put("price","2.22");  //评估净值
            jo.put("tax",""); //税费
            jo.put("taxDetail","城建维护税：501053,教育费附加：214737,交易手续费：2468,地方教育费附加：143158");  //税费明细
            jo.put("status","01"); //评估状态
            jo.put("message","20180808"); //估值说明
            jo.put("evalTime","20180808"); //估价时间
            jo.put("finFlag","1"); //是否评估完成1：完成0：未完成
            jo.put("comno","com02"); //渠道编号
            //jo.put("repetition","02"); //重评标志

            objects = client.invoke("receiveInquiries", jo.toJSONString());
        } catch (java.lang.Exception e) {
            e.printStackTrace();
        }

        if (!ObjectUtils.isEmpty(objects)) {
            String result = (String) objects[0];
            System.out.println(result);
        }

    }
}

*/
